package com.youmu.maven.emall.entity;

import java.util.Set;

public class Role extends BaseEntity {

	private String name;
	private String desc;
	private Set<Permission> permissions;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(Set<Permission> permissions) {
		this.permissions = permissions;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", desc=" + desc
				+ ", permissions=" + permissions + "]";
	}

}
